package Demo3;


abstract class Shape{
    public String name;
    public static int age;
    public abstract void draw();
}

class Cycle extends Shape{
    @Override
    public void draw() {
        System.out.println("圆形");
    }
}

class  Rest extends Shape{
    @Override
    public void draw() {
        System.out.println("矩形");
    }
}

class Trangle extends Shape{
    @Override
    public void draw() {
        System.out.println("三角形");
    }
}
public class Test {
    public static void main(String[] args) {
//        抽象类不可以实例化
//        Shape shape = new Shape() {
//
//        }

    }
}
